(global.webpackJsonp = global.webpackJsonp || []).push([ [ "xg_o2o/xgadmin/admin_distributior_detail" ], {
    "206d": function(i, t, e) {
        "use strict";
        (function(i) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var e = {
                data: function() {
                    return {
                        disid: 0,
                        distributior: {},
                        teckname: "技师",
                        perStatus: [ "已通过", "审核中", "退回重填", "申请拒绝" ],
                        statusIndex: 0,
                        graceFullLoading: !0,
                        ismanage: 0,
                        perimgs: "",
                        showBack: !1,
                        showPersonnel: 0,
                        teckName: ""
                    };
                },
                onLoad: function(i) {
                    var t = getCurrentPages();
                    this.showBack = t.length > 1, this.disid = i.disid, this.perData();
                },
                methods: {
                    memberlist: function(t) {
                        1 == t ? i.navigateTo({
                            url: "admin_distributor_perlist?disid=" + this.disid
                        }) : i.navigateTo({
                            url: "admin_distributor_list?disid=" + this.disid
                        });
                    },
                    statusChange: function(t) {
                        var e = this;
                        i.showLoading({
                            title: "提交中",
                            mask: !0
                        });
                        var n = this.$xSign.sign("v4admin_distribution");
                        this.$xRequest.request({
                            url: "entry/wxapp/v4admin_distribution",
                            data: {
                                op: "changestatus",
                                disid: this.disid,
                                status: t.detail.value,
                                xgsign: n
                            },
                            complete: function(t) {
                                i.setStorageSync("toadminDis", 1), i.showToast({
                                    title: t.data.message,
                                    icon: "none"
                                }), setTimeout(function() {
                                    e.perData();
                                }, 1e3);
                            }
                        });
                    },
                    perData: function() {
                        var t = this, e = this.$xSign.sign("v4admin_distribution");
                        this.$xRequest.request({
                            url: "entry/wxapp/v4admin_distribution",
                            data: {
                                op: "detail",
                                disid: this.disid,
                                xgsign: e
                            },
                            success: function(e) {
                                var n = JSON.parse(t.$Decrypt(e.data.data));
                                t.isadmin = n.isadmin, t.ismanage = n.ismanages, t.teckname = n.teckname, 1 == n.isadmin && (i.hideLoading(), 
                                t.graceFullLoading = !1, t.distributior = n.distributior), n.distributior.imgs && (t.perimgs = n.distributior.imgs.split(",")), 
                                t.teckName = n.teckname, t.showPersonnel = n.showteck;
                            },
                            fail: function(t) {
                                i.showToast({
                                    title: t.data.message,
                                    icon: "none"
                                }), setTimeout(function() {
                                    i.reLaunch({
                                        url: "../index/index"
                                    });
                                }, 1200);
                            }
                        });
                    },
                    copyInfo: function(t) {
                        i.setClipboardData({
                            data: t,
                            success: function() {
                                console.log("success");
                            }
                        });
                    },
                    showImgs: function(t) {
                        if ("string" == typeof t) e = [ t ]; else var e = t;
                        i.previewImage({
                            urls: e,
                            fail: function(i) {}
                        });
                    },
                    makePhoneCall: function() {
                        i.makePhoneCall({
                            phoneNumber: this.distributior.mobile
                        });
                    }
                }
            };
            t.default = e;
        }).call(this, e("543d").default);
    },
    9078: function(i, t, e) {
        "use strict";
        e.r(t);
        var n = e("a8ae"), a = e("f2dd");
        for (var s in a) "default" !== s && function(i) {
            e.d(t, i, function() {
                return a[i];
            });
        }(s);
        var o = e("f0c5"), r = Object(o.a)(a.default, n.b, n.c, !1, null, null, null, !1, n.a, void 0);
        t.default = r.exports;
    },
    a8ae: function(i, t, e) {
        "use strict";
        e.d(t, "b", function() {
            return a;
        }), e.d(t, "c", function() {
            return s;
        }), e.d(t, "a", function() {
            return n;
        });
        var n = {
            gracePage: function() {
                return e.e("graceUI/components/gracePage").then(e.bind(null, "1915"));
            },
            graceFullLoading: function() {
                return e.e("graceUI/components/graceFullLoading").then(e.bind(null, "7669"));
            },
            graceBorderRadius: function() {
                return e.e("graceUI/components/graceBorderRadius").then(e.bind(null, "3028"));
            },
            divider: function() {
                return e.e("components/divider/divider").then(e.bind(null, "bdb7"));
            }
        }, a = function() {
            this.$createElement, this._self._c;
        }, s = [];
    },
    e443: function(i, t, e) {
        "use strict";
        (function(i) {
            function t(i) {
                return i && i.__esModule ? i : {
                    default: i
                };
            }
            e("4e1e"), t(e("66fd")), i(t(e("9078")).default);
        }).call(this, e("543d").createPage);
    },
    f2dd: function(i, t, e) {
        "use strict";
        e.r(t);
        var n = e("206d"), a = e.n(n);
        for (var s in n) "default" !== s && function(i) {
            e.d(t, i, function() {
                return n[i];
            });
        }(s);
        t.default = a.a;
    }
}, [ [ "e443", "common/runtime", "common/vendor" ] ] ]);